<?php if(!$lockUser):?>
	<div class="yiiForm">
	<?php echo CHtml::beginForm(); ?>
	
	<?php echo CHtml::errorSummary($model); ?>
	
	<div class="simple">
	<?php echo CHtml::activeLabel($model,'username'); ?>
	<?php echo CHtml::activeTextField($model,'username') ?>
	</div>

	<div class="simple">
	<?php echo CHtml::activeLabel($model,'password'); ?>
	<?php echo CHtml::activePasswordField($model,'password') ?>
	</div>

	<div class="simple">
	<?php echo CHtml::activeCheckBox($model,'rememberMe'); ?>
	<?php echo CHtml::activeLabel($model,'rememberMe') ?>
	</div>
	
	<?php if(extension_loaded('gd') and !$allowEmpty): ?>
		<div class="simple">
		<?php echo CHtml::activeLabel($model,'verifyCode'); ?>
		<?php $this->widget('CCaptcha',array('buttonLabel'=>'<img src="/images/reload.gif" border=0 />')); ?><?php echo CHtml::activeTextField($model,'verifyCode'); ?>
		</div>
	<?php endif; ?>
	
	<div class="action">
	<?php echo CHtml::submitButton('Entrar'); ?>
	</div>
	
	<?php echo CHtml::endForm(); ?>
	</div>
<?php else:?>
	<?php if(Yii::app()->user->hasFlash('success')):?>
	    <div class="info">
	        <?php echo Yii::app()->user->getFlash('success'); ?>
	    </div>
	<?php endif; ?>
<?php endif;?>